package com.ruoyi.project.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class BomPartstRef extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** BOM主键 */
    @Excel(name = "BOM主键")
    private String bomId;

    /** 零件主键 */
    @Excel(name = "零件主键")
    private String partstId;

    /** 零件数量 */
    @Excel(name = "零件数量")
    private Long count;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBomId(String bomId)
    {
        this.bomId = bomId;
    }

    public String getBomId()
    {
        return bomId;
    }
    public void setPartstId(String partstId)
    {
        this.partstId = partstId;
    }

    public String getPartstId()
    {
        return partstId;
    }
    public void setCount(Long count)
    {
        this.count = count;
    }

    public Long getCount()
    {
        return count;
    }
    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public String getComment()
    {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bomId", getBomId())
                .append("partstId", getPartstId())
                .append("count", getCount())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("comment", getComment())
                .toString();
    }
}